class UserBlogsController < ApplicationController
    
  def index
     @user_blogs = UserBlog.all
   end
  
  def show
     @user_blog = UserBlog.find(params[:id])
   end
 
  def new
     @user_blog = UserBlog.new
   end

  def create
     @user_blog = UserBlog.new(params[:user_blog])
     @user_blog.save
     redirect_to user_blogs_url
   end

  def destroy
     @user_blog = UserBlog.find(params[:id])
     @user_blog.destroy
     redirect_to user_blogs_url
   end
end
